/*
 *  DriverOption.h
 *  powaah
 *
 *  Created by Tim Uusitalo on 4/23/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef DRIVER_OPTION_H

#define DRIVER_OPTION_H

#include "MathUtility.h"

#include "CarState.h"

class DriverOption
{
public:
	DriverOption();
	DriverOption(const float length, const float angle);
	~DriverOption();
	
	void update(CarState& cs, const float dt);
	
	const float getLength() const;
	const float getAngle() const;
	const Vector2 getPosition() const;
	const float getPotential() const;
	const float getAccelerator() const;
	const float getBrake() const;
	
	void setLength(const float l);
	void setAngle(const float a);
	void setPosition(const Vector2& p);
	void setPotential(const float p);
	void setAccelerator(const float accel);
	void setBrake(const float brake);
	
	void addPotential(const float p);
	
private:
	float length;
	float angle;
	Vector2 position;
	float potential;
	float accelerator;
	float brake;
	
};


#endif